package Thread.CreateNewThread;

public class NewThread {
    public static void main(String[] args) {
        System.out.println("Main Start");
        Thread thread = new Thread(){
            public void run(){
                System.out.println("Thread Start");
                try{
                    Thread.sleep(10);
                } catch (InterruptedException e) {
                    System.out.println("thread end");
                }
            }
        };
        thread.start();
        System.out.println("Main End");
    }
}
